package csdn.jihe.li13;

import java.util.Map;
import java.util.TreeMap;

public class TestTree {
    public static void main(String[] args) {
        //练习比较器排序


        Map<Student,String> tree=new TreeMap<>();
        tree.put(new Student("lin",18), "依旧购物袋");
        tree.put(new Student("nin",2), "男");
        tree.put(new Student("tin",19), "女");

        System.out.println(tree);
    }
}
